package com.threeti.mecool.web.form;

import com.threeti.mecool.framework.util.Lists;
import com.threeti.mecool.framework.web.form.AbstractSearchCriteriaForm;

import java.util.Collections;
import java.util.List;

public class PermissionRoleForm extends AbstractSearchCriteriaForm {

	private String name;

	private List<String> permissionEntries = Lists.newArrayList();

	private List<String> managedAdminDivisionCodeEntries = Lists.newArrayList();

	private List<String> managedOrgCodeEntries = Lists.newArrayList();

	private String isAdvanced;

	private Integer useADFilter;

	public String getIsAdvanced() {
		return isAdvanced;
	}

	public void setIsAdvanced(String isAdvanced) {
		this.isAdvanced = isAdvanced;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setPermissionEntries(List<String> permissionEntries) {
		this.permissionEntries = permissionEntries;
	}

	public List<String> getPermissionEntries() {
		return Collections.unmodifiableList(permissionEntries);
	}

	public List<String> getManagedAdminDivisionCodeEntries() {
		return Collections.unmodifiableList(managedAdminDivisionCodeEntries);
	}

	public void setManagedAdminDivisionCodeEntries(List<String> managedAdminDivisionCodeEntries) {
		this.managedAdminDivisionCodeEntries = managedAdminDivisionCodeEntries;
	}

	public List<String> getManagedOrgCodeEntries() {
		return Collections.unmodifiableList(managedOrgCodeEntries);
	}

	public void setManagedOrgCodeEntries(List<String> managedOrgCodeEntries) {
		this.managedOrgCodeEntries = managedOrgCodeEntries;
	}

    public Integer getUseADFilter() {
        return useADFilter;
    }

    public void setUseADFilter(Integer useADFilter) {
        this.useADFilter = useADFilter;
    }
}
